﻿using RoketSolutions.SP2010.Infrostructure.UI.Ajax.Controllers;

namespace RoketSolutions.SP2010.Infrostructure.UI.Ajax.Abstractions
{
    public class ControllerContext
    {
        public ControllerContext(RequestContext context, ControllerBase controller)
        {
            Controller = controller;
            RequestContext = context;
        }

        public ControllerContext()
        {
            
        }

        #region / Properties /

        public virtual ControllerBase Controller { get; set; }

        public RequestContext RequestContext { get; set; }

        public virtual HttpContextWrapper HttpContext
        {
            get { return RequestContext.HttpContext; }
        }

        #endregion

    }
}
